-- GENERATED SPELL FOR [Animated Plague Slime] --


function spell0_24279(pUnit, Event) --@Dark Sludge,n/a--
pUnit:FullCastSpellOnTarget(3335,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24279', 5000, 1)
end

function Sorts_24279(pUnit, Event)
local choix_sorts_24279 = math.random(0, 0)
if choix_sorts_24279 == 0 then
pUnit:RegisterEvent('spell0_24279', 1, 1)
end
end

function mob24279_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24279', math.random(1500, 3000), 1)
end

function mob24279_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24279_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24279_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24279, 1, 'mob24279_Action')
RegisterUnitEvent(24279, 2, 'mob24279_Leave')
RegisterUnitEvent(24279, 3, 'mob24279_Kill')
RegisterUnitEvent(24279, 4, 'mob24279_Die')
